#pragma once
#include <iostream>
#include <string>
#include <cstring>
#include <vector>
class Util
{
public:
    static void cutString(const std::string &str, const std::string &sep, std::vector<std::string> *out)
    {
        size_t start = 0;
        while (start < str.size())
        {
            size_t pos = str.find(sep, start);
            if (pos == std::string::npos)
                break;
            std::string sub = str.substr(start, pos - start);
            out->push_back(sub);
            start += sub.size();
            start += sep.size();
        }
        out->push_back(str.substr(start));
    }
};